package com.njit.farm.dataobject;

import com.njit.farm.model.Opreation;

import java.util.Date;

public class FOpreation {
    private String oId;

    private String oType;

    private Date oTime;

    private Float oCost;

    private String oState;

    private String lId;

    public String getoId() {
        return oId;
    }

    public void setoId(String oId) {
        this.oId = oId;
    }

    public String getoType() {
        return oType;
    }

    public void setoType(String oType) {
        this.oType = oType;
    }

    public Date getoTime() {
        return oTime;
    }

    public void setoTime(Date oTime) {
        this.oTime = oTime;
    }

    public Float getoCost() {
        return oCost;
    }

    public void setoCost(Float oCost) {
        this.oCost = oCost;
    }

    public String getoState() {
        return oState;
    }

    public void setoState(String oState) {
        this.oState = oState;
    }

    public String getlId() {
        return lId;
    }

    public void setlId(String lId) {
        this.lId = lId;
    }


    public Opreation toModel(){
        Opreation opreation = new Opreation();
        opreation.setId(this.oId);
        opreation.setCost(this.oCost);
        opreation.setState(this.oState);
        opreation.setTime(this.oTime);
        opreation.setType(this.oType);
        return opreation;
    }
}